﻿@using Lihong.Cms.Entities
@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@model List<Menu>

@if (Model.Count > 0)
{
    <ul>
    @foreach(Menu m in Model)
    {
        <li>
            <a href="@m.Url">@m.Name</a>
            @if(m.Children.Count > 0)
            {
                @await Component.InvokeAsync("ShowMenu", m.Children)
            }
        </li>
    }
    </ul>
}
